/*
 * Author: Jeff Liu(jebberwocky@gmail.com)
 * Date: Sep 7, 2010 9:57:57 PM
 * 
 * License: MIT
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
 * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
package org.gglgeo.util;

// TODO: Auto-generated Javadoc
/**
 * The Class DataUtil.
 */
public class DataUtil {
	
	/**
	 * Checks if is empty string.
	 *
	 * @param s the s
	 * @return the boolean
	 */
	public static  Boolean IsEmptyString(String s){
		if(s !=null && !s.isEmpty())
			return false;
		else
			return true;
	}
	
	/**
	 * Object to string.
	 *
	 * @param o the o
	 * @return the string
	 */
	public static String ObjectToString(Object o){
		if(o==null)
			return null;
		else
			return o.toString();
	}
}
